package com.jvyou.house.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "ymmm-email")
public class MailSendInfo {
    //主机名
    private String host;
    //端口号
    private String port = "25";
    //是否需要身份认证
    private boolean auth = true;
    //发送人地址
    private String fromAddress;
    //接收人地址列表
    private List<String> toAddresses;
    //邮件服务器账号
    private String user;
    //邮件服务器密码，即授权码
    private String pwd;
    //邮件主题
    private String subject;
    //邮件内容
    private String content;
    //邮件发送时间
    private Date sendDate = new Date();
    //邮件的附件文件列表
    private List<String> attachFileNames;
}